<?php
header("Content-type:text/html;charset=utf-8");
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/1/18 0018
 * Time: 0:04
 */
function hello(){
    echo 'hello php';
}
//hello();

//$a=hello();
//echo $a;

function h1($name){//添加函数参数
    echo 'hello'.$name.'<br>';
}
h1("张三");//声明参数
h1("李四");

function h2($a,$b){//多个参数
    echo "a=$a,b=$b".'<br>';
}
h2(6,8);

function h3($c,$d){
    return $c+$d;//返回值

}
echo h3(1,2);
